import hashlib, uuid

def encryption(pwd):

    s = hashlib.md5()
    s.update(pwd.encode('utf-8'))
    return s.hexdigest()

def uid(string):
    data = f"{str(uuid.uuid4())}-{string}"
    return encryption(data)